//
//  XLAudioSpectrumPlayer.h
//  AudioWaveDemo
//
//  Created by ilongge on 2023/4/19.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
 

@interface XLAudioSpectrumPlayer : NSObject
@property (nonatomic, strong) AVAudioEngine *engine;
@property (nonatomic, strong) AVAudioPlayerNode *player;
@property (nonatomic, assign) NSInteger fftsize;
@property (nonatomic, weak) id delegate;
- (void)play:(NSString *)filePath sampleBlock:(void (^)(NSData *audioData, BOOL finshed))sampleBlock;
- (void)stop;
@end

 
